﻿using Power.Don.Entity;
using Microsoft.EntityFrameworkCore;

namespace Power.Infrastructure.Db
{
  
    public class PowerDbContext : DbContext
    {
        private readonly string _conString="server=.;database=Power;uid=sa;pwd=123456;";

        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(_conString);
        }


        public DbSet<Users> Users { get; set; }
        public DbSet<Roles> Roles { get; set; }
        public DbSet<UserRoles> UserRoles { get; set; }
    }

}
